
#include <iostream>
#include <string>
#include <cstdint>
#include "TestSuite.h"

void TestSuite::addTestCase(const TestCase &testCase)
{
    testCases.push_back(testCase);
}

void TestSuite::runAll()
{
    bool allPassed = true;
    for (auto &testCase : testCases)
    {
        if (!testCase.run())
        {
            std::cout << "Test case failed: " << testCase.name << std::endl;
            allPassed = false;
        }
    }
    if (allPassed)
    {
        std::cout << "All test cases passed." << std::endl;
    }
    else
    {
        std::cout << "Some test cases failed." << std::endl;
    }
}
